package com.bzxhh.spring6.aop.annoaop;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAop {

//    @Test
//    public void testAdd() {
//        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
//        Calculator calculator = context.getBean(Calculator.class);
//        calculator.add(2, 3);
//    }

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        Calculator calculator = context.getBean(Calculator.class);
        calculator.add(2, 3);
    }
}
